@extends('web.layouts.app')

@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/index.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/ucenter.css')}}">
@endsection

@section('content')
<div class="Prompt-page" style="">
	<div class="Prompt-box clearfix" style="display: none;">
		<div class="fail-404" style="display: none;"><img src="{{ asset('resources/web/images/404.png') }}"></div>
		<div class="QR-code">
			<p style="">关注我们 福利多多</p>
			<img src="{{ asset('resources/web/images/i-beibeili.png') }}">
			<div style="">微信号：i-beibeili</div>
		</div>
		<!-- 图片地址 fail失败 ok成功 -->
		<div class="Prompt-icon"><img src="{{ asset('resources/web/images/ok.png') }}"></div>
		<div class="Prompt-text" style="margin-left: 20px;">
		<!-- 成功字体颜色6eba6f 失败颜色666666-->
			<p class="okAndconle" style="color:#6eba6f;line-height: 30px;">恭喜您,登陆成功</p>
			<div class="text1" style="line-height: 30px;">即刻开启您的财富之旅！</div>
			<div class="text2"><span id="djs" data-redirect-uri="{{ $redirectUri }}" style="color:red;">4</span>秒钟后带你穿越带你飞..... <a href="{{ $redirectUri }}" class="Prompt-url">立即穿越</a></div>
		</div>
		<div class="Prompt-sbutton clearfix">
			<div class="btn">
				<a href="{{ $redirectUri }}" class="location1">立即返回</a>
				<a href="{{ action('UserCenter\UserCenterController@center',['menu'=>1]) }}" class="location2">用户中心</a>
			</div>
		</div>
	</div>
</div>
@endsection

@section('scripts')
	 <script>
		$(function(){

		$('.Prompt-box').css({'left':$('.Prompt-page').width()/2-$('.Prompt-box').width()/2+'px','top':$('.Prompt-page').height()/2-$('.Prompt-box').height()/2+'px'}).show();
			// $('.Prompt-box').css({'marginLeft':-($('.Prompt-box').width()/2),'marginTop':-($('.Prompt-box').height()/2)});
			$('.gift-back').click(function(){
				$('.gift').hide();
			});
			djs();
		});	

		//5秒钟带你穿越
			var $djs = $('#djs');
			var $redirectUri = $djs.data('redirect-uri');

			function djs(){
				var count = $('#djs').text();
				if (count > 1){
					count --;
					$djs.text(count);
					setTimeout('djs()',1000);
				}else{
					window.location.href=$redirectUri;
				}
			}
	 </script>
@endsection